# -*- coding: utf-8 -*-
#----------------------------------------------
# @note: system link for checkout git repository
# @author: Andrey Simine/Андрей Симин
# @copyright: (с) 2016 Андрей Симин
#----------------------------------------------
__author__ = 'asimine'

from chainlib.basic_link import BasicLink
import time, sys
from pprint import pprint


class UserLink(BasicLink):

    def __init__(self, context):
        super(UserLink, self).__init__(context)

    def execute(self):
        params = self.context["linkdata"]["parameters"]         
        print(f"Checkout GIT repository {params['url']}")
        print("...")
        print(f"Checkout of repo {params['url']} is finished successfully.")
